﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fjaspx.UI.Web.Administrator.App_Api
{
    public partial class GetUserDate : UserPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["GetUserDate"] != null && Request["user_id"] != null)
                {

                    Response.ContentType = "text/plain"; // 输出文本显示
                    Response.Clear();
                    ___ROYcms_user_model = ___ROYcms_user_bll.GetModel(Convert.ToInt32(Request["user_id"]));
                    string UserDate = Request["GetUserDate"].ToString();
                    UserDate = UserDate.Replace("{name}", ___ROYcms_user_model.name);
                    UserDate = UserDate.Replace("{pic}", ___ROYcms_user_model.pic);
                    UserDate = UserDate.Replace("{email}", ___ROYcms_user_model.email);
                    UserDate = UserDate.Replace("{qq}", ___ROYcms_user_model.qq);
                    UserDate = UserDate.Replace("{sex}", ___ROYcms_user_model.sex);
                    UserDate = UserDate.Replace("{uaername}", ___ROYcms_user_model.username);
                    UserDate = UserDate.Replace("{money}", ___ROYcms_user_model.money.ToString());

                    Response.Write(UserDate);
                }
               
            }
        }
    }
}
